package com.example.treasure_back.service;

import com.example.treasure_back.mapper.GarbageMapper;
import com.example.treasure_back.model.GarbageModel;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class GarbageService {

    @Autowired
    private GarbageMapper garbageMapper;

    public GarbageModel getGarbageById(Integer id){
        return garbageMapper.selectById(id);
    }
}
